Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nvidia-ctk runtime apply command to simulate OCI spec modifications #338

Closed
wants to merge 5 commits into from

Conversation

elezar
Copy link
Member

@elezar elezar commented Feb 5, 2024

For example, running:

./nvidia-ctk --debug runtime list --mode=legacy -e NVIDIA_VISIBLE_DEVICES=0 -e NVIDIA_DRIVER_CAPABILITIES=all

will show the discovery log as well as generate the OCI spec modifications due to graphics injection.

@elezar elezar self-assigned this Feb 5, 2024
@elezar elezar requested a review from zvonkok February 5, 2024 22:58
This minor refactor aligns the construction of the CDI modifier
with other modifiers. It is update to accept an CUDA image / container
and this is used to extract device information instead of re-reading the
raw OCI spec.

Signed-off-by: Evan Lezar <[email protected]>
This change adds an nvidia-ctk runtime apply command for applying modifications
to an OCI specification. This can be used for debugging or to apply modifications
to OCI specifications in use cases where the OCI-runtime shim cannot be invoked.

Signed-off-by: Evan Lezar <[email protected]>

// Create the 'configure' command
configure := cli.Command{
Name: "list",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Update to apply

@elezar elezar closed this May 15, 2024
@elezar elezar deleted the nvidia-ctk-info branch May 15, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant